package com.liyu.iblog.domain;

import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * internal user who can 
 * create blog etc.
 * @author liyuw
 *
 */
@SuppressWarnings("serial")
@Entity
@DiscriminatorValue("SYSTEM")
public class SysUser extends User {
    
    private String firstName;
    private String lastName;
    private String password;
    
    @Temporal(TemporalType.TIMESTAMP)
    private Date registerTime;
    
//    @OneToMany(mappedBy = "author")
//    private Set<Blog> blogs = new HashSet<Blog>();
    
    public SysUser() {
        
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

//    public Set<Blog> getBlogs() {
//        return blogs;
//    }
//
//    public void setBlogs(Set<Blog> blogs) {
//        this.blogs = blogs;
//    }
    
}
